import { useEffect } from 'react';

type FetchFn = <T = any> (...args: any[]) => Promise<T>;

interface FetchFnOptions {
  manual: boolean;
}

// TODO
export function useRequest(fn, options?: Partial<FetchFnOptions>) {
  const {
    manual = false
  } = options || {};

  useEffect(() => {});
}